//package com.fsql.config;
//
//import com.fsql.utils.PropertyUtils;
//import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.io.ClassPathResource;
//import org.springframework.core.io.Resource;
//
//@Configuration
//public class ConfigConfiguration {
//
//    @Bean
//    public PropertyUtils initUtils() {
//        //1:加载配置文件
//        Resource app = new ClassPathResource("application.yaml");
//        YamlPropertiesFactoryBean yamlPropertiesFactoryBean = new YamlPropertiesFactoryBean();
//        yamlPropertiesFactoryBean.setResources(app);
//        return new PropertyUtils(yamlPropertiesFactoryBean.getObject());
//    }
//}
